package edu.xpu.compute.recommend.fontpage.admin;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestParam;

import edu.xpu.compute.recommend.common.annotation.Router;

@Controller
@Router(value="web/rating")
public class SysUserBookRatingRouter {

	@Router(value="list")
	public String ratingList() {
		return "admin/rating/ratingList";
	}
	
	@Router(value="add")
	public String ratingAdd(@RequestParam(value="userGuid", required=false) Long userGuid,
			@RequestParam(value="bookGuid", required=false) Long bookGuid, ModelMap modelMap) {
		modelMap.addAttribute("userGuid", userGuid);
		modelMap.addAttribute("bookGuid", bookGuid);
		return "admin/rating/ratingAdd";
	}
}
